
package com.be.beadmin.design.service;

import com.be.beadmin.design.entity.DrawingReview;
import com.be.beadmin.design.dto.output.DrawingReviewEx;
import com.be.beadmin.design.dto.input.DrawingReviewDto;
import com.be.beadmin.design.dto.input.DrawingReviewQueryCriteria;
import io.minio.errors.MinioException;
import org.springframework.data.domain.Page;
import com.be.beadmin.common.entity.PageEntity;
import org.springframework.data.domain.Pageable;

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.text.ParseException;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @description 服务接口
* @author zmy
* @date 2023-09-05
**/
public interface DrawingReviewService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<DrawingReviewEx> getDrawingReviewByPage(PageEntity pageEntity);

    /**
    * @param drawingReviewDto
    */
    void addDrawingReview(DrawingReviewDto drawingReviewDto);

    void addMutiDrawingReview(List<DrawingReviewDto> drawingReviewDto) throws ParseException;


    /**
    * @param drawingReviewDto
    */
    void updateDrawingReview(DrawingReviewDto drawingReviewDto);

    /**
    * @param id
    */
    void delDrawingReview(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delDrawingReviews (List<String> ids);

    void confirmDrawingReview(String id,int reviewState,String reviewMemo, String version) throws Exception;

    int countUnreviewedDrawing();


}